
<div class="section section-small">
<div class="section-header">
<h5>
Reminders
<small></small>
</h5>
<!-- <ul>
<li style="padding-top:6px;"><a href="#" class="btn btn-mini">Add a Reminder</a></li>
</ul> -->

</div>
<div class="section-body">
 <?php 
   
if(mysql_num_rows($reminder_list))
{  ?>     
<table class="table table-striped table-condensed" id="vehicles-table">
<tbody>
<?php 
$status="";
while($reminder = mysql_fetch_object($reminder_list)) 
  { 
     if($reminder->due==1) $status="<span class='label label-important'>Over Due ".abs($reminder->rem_days)." Days</span>"; elseif($reminder->duesoon==1) $status="<span class='label label-warning'>Due".abs($reminder->rem_days)." Days</span>"; elseif($reminder->due==0 && $reminder->duesoon==0) $status="<span class='label label-success'>Due".abs($reminder->rem_days)." Days</span>";
   ?>        
<tr>
    <td style="vertical-align: middle;"> <a href="info_page.php?id=<?php echo $reminder->vehicle_id ?>"><?php echo "#".$reminder->vehicle_id ?></a> </td>
<td width="150px" style="vertical-align: middle;"> 
   
   <?php echo $reminder->first_name." ".$reminder->last_name ?> 
    <div class="muted"><small><b><?php echo " ".$reminder->set_date ?></b></small> </div>
</td>
<td width='100px' style="vertical-align: middle;">
    
   <?php echo $status ?> <br/>
   <small><b><?php echo $reminder->to_date ?></b></small> 
</td>
<td style="vertical-align: middle;">
    <?php echo $reminder->remind_note ?>
</td>
</tr>
<?php }?>
</tbody>
</table>
<ul class="pager">
<li class="next">
<a href="#reminderlist-modal" data-toggle='modal' data-target='#reminderlist-modal' id="btn-allreminders" >All Reminders
→
</a></li>
</ul>
<?php }
else
{?>
   <div class="row-fluid">
        <div class="span12 ac">
            <div class="data-block" style="margin-top: 85px;">
                <h2 style="color: #999;">No Reminders</h2>
            </div>
        </div>
        
    </div>
<?php 

} ?>
</div>

</div>
